home *** CD-ROM | disk | FTP | other *** search
/ Programming Microsoft Visual Basic .NET / Programming Microsoft Visual Basic .NET (Microsoft Press)(X08-78517)(2002).bin / setup / vbnet / 24 aspnet applications / aspnetsecurity / global.asax.vb < prev    next >
Encoding:
Text File  |  2002-03-18  |  1.8 KB  |  62 lines

  1. ' a standard global.asax file
  2.  
  3. Imports System.Web
  4. Imports System.Web.SessionState
  5.  
  6. Public Class Global
  7.     Inherits System.Web.HttpApplication
  8.  
  9. #Region " Component Designer Generated Code "
  10.  
  11.     Public Sub New()
  12.         MyBase.New()
  13.  
  14.         'This call is required by the Component Designer.
  15.         InitializeComponent()
  16.  
  17.         'Add any initialization after the InitializeComponent() call
  18.  
  19.     End Sub
  20.  
  21.     'Required by the Component Designer
  22.     Private components As System.ComponentModel.IContainer
  23.  
  24.     'NOTE: The following procedure is required by the Component Designer
  25.     'It can be modified using the Component Designer.
  26.     'Do not modify it using the code editor.
  27.     <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  28.         components = New System.ComponentModel.Container()
  29.     End Sub
  30.  
  31. #End Region
  32.  
  33.     Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
  34.         ' Fires when the application is started
  35.     End Sub
  36.  
  37.     Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
  38.         ' Fires when the session is started
  39.     End Sub
  40.  
  41.     Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
  42.         ' Fires at the beginning of each request
  43.     End Sub
  44.  
  45.     Sub Application_AuthenticateRequest(ByVal sender As Object, ByVal e As EventArgs)
  46.         ' Fires upon attempting to authenticate the use
  47.     End Sub
  48.  
  49.     Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
  50.         ' Fires when an error occurs
  51.     End Sub
  52.  
  53.     Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
  54.         ' Fires when the session ends
  55.     End Sub
  56.  
  57.     Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
  58.         ' Fires when the application ends
  59.     End Sub
  60.  
  61. End Class
  62.